﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace OpenWaves.Web.Tests
{
    public partial class TestCase : System.Web.UI.MasterPage
    {
        protected override void OnInit(EventArgs e)
        {
            this.TestCasePlaceHolder.EnableViewState = Convert.ToBoolean(this.Request.QueryString["EnableViewState"] ?? "true");
            base.OnInit(e);
        }

        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            if (this.TestCasePlaceHolder.EnableViewState == false || this.IsPostBack == false)
            {
                this.Page.DataBind();
            }
        }

    }
}